﻿// CElementSplitterWnd.cpp: 实现文件
//

#include "stdafx.h"
#include "zChecker.h"
#include "ElementSplitterWnd.h"

#include "ElementListView.h"
#include "ElementTreeView.h"
#include "ElementTabView.h"

// CElementSplitterWnd

IMPLEMENT_DYNAMIC(CElementSplitterWnd, CSplitterWnd)

CElementSplitterWnd::CElementSplitterWnd()
{

}

CElementSplitterWnd::~CElementSplitterWnd()
{
}


BEGIN_MESSAGE_MAP(CElementSplitterWnd, CSplitterWnd)
END_MESSAGE_MAP()



// CElementSplitterWnd 消息处理程序
void CElementSplitterWnd::CleanupList()
{
	CElementListView* pListView = (CElementListView*)(this->GetPane(0, 1));
	pListView->GetListCtrl().DeleteAllItems();
}

void CElementSplitterWnd::AddCheckElement(ck::CheckElement* pElement)
{
	CElementListView* pListView = (CElementListView*)(this->GetPane(0, 1));
	pListView->AddCheckElement(pElement);
}













//////////////////////////////////////////////////////////////////////////

void CElementSplitterWnd::PopulateList(unsigned int ckCode, CString strText)
{
	//CElementListView* pListView = (CElementListView*)(this->GetPane(0, 1));
	//pListView->Populate(ckCode, strText);

	CElementTabView* pListView = (CElementTabView*)(this->GetPane(0, 1));
	pListView->Populate(ckCode, strText);
}

